package com.sixtwo.member.feign;

import com.sixtwo.dto.CommonResult;
import com.sixtwo.member.dto.MemberDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("member-service")
public interface MemberFeign {

    @GetMapping("/member/revokeAccount/{id}")
    CommonResult<MemberDto> revokeAccount(@PathVariable("id") Long id);
}
